// $Id: Program.cs 71 2008-06-24 20:21:42Z nvivo $

using System;
using System.Collections.Generic;
using System.Threading;
using System.Windows.Forms;

namespace DBLGen.GUI
{
	using System.Configuration;
	using DBLGen.Configuration;
	using System.Diagnostics;

	static class Program
	{
		[STAThread]
		static void Main()
		{
			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);

#if !DEBUG
            Application.ThreadException += HandleException;
#endif

			Plugin.LoadFromConfig();

			Application.Run(new Forms.Main());
		}

		private static void HandleException(object sender, ThreadExceptionEventArgs e)
		{
			Forms.UnhandledException.ShowDialog(e.Exception);
		}
	}
}